package com.itheima.ArrayList;

import java.util.ArrayList;

public class DmeoArrayList {
    public static void main(String[] args) {
        ArrayList<String> ls   = new ArrayList<>();
        //add在集合里添加字符串
        ls.add("杨世兵");
        ls.add("周长银");
        //在指定索引位置添加指定字符
        ls.add(1,"杨周周" );
        ls.add(3,"周周杨");
        System.out.println(ls);
    }
}
